Page({
  /**
   * 页面的初始数据
   */
  data: {
    hideShare:true,
    flag: true,
  },
  onReady: function () {
    this.animation = wx.createAnimation()
  },
  translate: function () {
    //this.animation.translate(-50, -1).step()//小程序动画animation向左移动效果
    this.animation.translate(50, 1).step() //小程序动画animation向右移动效果
    this.setData({animation: this.animation.export()})
  },
  // 邀请模块遮罩层
  chooseShare:function(){
    var that = this;
    var hides = that.data.hideShare;

    if (hides==true){
      that.setData({
        hideShare: false
      })
    } else if (hides == false){
      that.setData({
        hideShare: true
      })
    }

  },
  showMask: function () {
    this.setData({ flag: false })
  },
  closeMask: function () {
    this.setData({ flag: true })
  },

})